public class SinNode {
    // 数据域
    private Object data;

    // 下一个节点
    private SinNode next;

    // 无参构造函数
    public SinNode() {
        this(null,null);
    }
    public SinNode(Object data) {
        this(data,null);
    }
    // 有参构造函数
    public SinNode(Object data,SinNode next) {
        this.data = data;
        this.next = next;
    }

    public Object getData() {
        return this.data;
    }

    public SinNode getNext() {
        return this.next;
    }

    public void setNext(SinNode next) {
        this.next = next;
    }
}
